package cqyt.pojo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author 涵菜
 * @version 1.0
 */
@Getter
@Setter
@NoArgsConstructor
public class Aircraft {

    /**
     * 飞机名称
     */
    private String name;

    /**
     * 飞机类型
     */
    private String type;

    /**
     * 飞机数量
     */
    private int quantity;

    /**
     * 飞行高度
     */
    private int flightAltitude;

    /**
     * 飞行速度
     */
    private int flightSpeed;

    /**
     * 隐身性能
     */
    private boolean stealthPerformance ;

    /**
     * 雷达型号
     */
    private String radarModel;

    public Aircraft(String name, String type, int quantity, int flightAltitude, int flightSpeed, boolean stealthPerformance, String radarModel) {
        this.name = name;
        this.type = type;
        this.quantity = quantity;
        this.flightAltitude = flightAltitude;
        this.flightSpeed = flightSpeed;
        this.stealthPerformance = stealthPerformance;
        this.radarModel = radarModel;
    }

    public Aircraft(String name, int quantity, int flightAltitude, int flightSpeed, boolean stealthPerformance, String radarModel) {
        this.name = name;
        this.quantity = quantity;
        this.flightAltitude = flightAltitude;
        this.flightSpeed = flightSpeed;
        this.stealthPerformance = stealthPerformance;
        this.radarModel = radarModel;
    }

    @Override
    public String toString() {
        return
                "飞机名称='" + name + '\'' +
                ",飞机类型='" + type + '\'' +
                ",飞机数量 =" + quantity +
                ", 飞行高度=" + flightAltitude +
                ", 飞行速度=" + flightSpeed +
                ", 是否有隐身性能=" +  (stealthPerformance ? '是':'否') +
                ", 飞机雷达型号='" + radarModel + '\'' +
                ',';
    }
}
